import fs from "fs";

/**
 * 是否存在
 * @param path 
 * @returns 
 */
export const exists = async (path: string) => {
  try {
    await fs.promises.access(path);
    return true;
  } catch (error) {
    return false;
  } 
}